/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package rapc;

import jcolibri.cbrcore.Attribute;

/**
 *
 * @author Gianfranco
 */
public class CaseDescripteur implements jcolibri.cbrcore.CaseComponent{
    
    private static int compteur = 0;
    private int caseId;
    private String nomDescripteur;
    private String maxValue;
    private String minValue;
    private String defaultValue;
    private String description;
    private String type;
    
    /**
     * 
     * @param nom
     * @param max
     * @param min
     * @param defaultV
     * @param description
     * @param type 
     */
    public CaseDescripteur()
    {
        super();
    }
    
    public CaseDescripteur(String nom, String max, String min, String defaultV, String description, String type)
    {
        super();
        compteur++;
        this.caseId = compteur;
        this.defaultValue = defaultV;
        this.minValue = min;
        this.maxValue = max;
        this.description = description;
        this.type = type;
        
    }
    
    public Attribute getIdAttribute() {
        return new Attribute("caseId", this.getClass());
    }
    
    
    public void setIdAttribute() {        
        compteur++;
        this.caseId = compteur;
    }
    
    
    public Attribute getNameAttribute()
    {
        return new Attribute("nomDescripteur", this.getClass());
    }
    
    public void setNameAttribute(String n) {        
        this.nomDescripteur = n;
    }
    
    public Attribute getTypeAttribute()
    {
        return new Attribute("type", this.getClass());
    }
    public void setTypeAttribute(String n) {        
        this.type = n;
    }
    
    public Attribute getMinValueAttribute()
    {
        return new Attribute("minValue", this.getClass());
    }
    public void setMinValueAttribute(String n) {        
        this.minValue = n;
    }
    
    public Attribute getMaxValueAttribute()
    {
        return new Attribute("maxValue", this.getClass());
    }
    public void setMaxValueAttribute(String n) {        
        this.maxValue = n;
    }
    public Attribute getDescriptionAttribute()
    {
        return new Attribute("description", this.getClass());
    }
    public void setDescriptionAttribute(String n) {        
        this.description = n;
    }
    
    public Attribute getDefaultValueAttribute()
    {
        return new Attribute("defaultValue", this.getClass());
    }
    public void setDefaultValueAttribute(String n) {        
        this.defaultValue = n;
    }
}
